#ifndef CLIENT_H_
#define CLIENT_H_
#include "../common/common.h"
#include "../twofish/zlib_use.h"
#include "../twofish/myTwofish2.h"
#include "../rsa/myRsa.h"

/* FOR OPTION DEFINITION */
typedef enum  
{
	OPT_SEND_FILE, /*OPT_SEND_TERMINAL,*/ OPT_LIST_FILES,OPT_LIST_FIL_FILES, OPT_GET_FILE, OPT_SET_PERMISSION, OPT_QUIT 
} OptionType;

int doSendFile(int socket, char * encryptedPassword);
int doListFiles(int socket, char* filter);
int doGetFile(int socket, char * user, char* pass, char *encryptedPassword, char* sessionPwd, char *filename);
int doSetPerm(int socket,char* sessionPwd, char *filename, char *encryptedPassword);
int SendEncrypted(char * host, char * port, RequestPacket req);
int getConnected(char * host, char * port, int * descriptor);

#endif /*CLIENT_H_*/
